{% extends "base.html" %}
{% load staticfiles %}
{% block title %} 首页 {% endblock %}
{% block css %}
	{% include "common/_stylesheets.html" %}
{% endblock %}
{% block content %}
<!-- top tiles -->
<div class="row tile_count">
	{% if request.session.usertype != 1 %}
	  <div class="col-md-2 col-sm-4 col-xs-6 tile_stats_count">
	    <span class="count_top"><i class="fa fa-user"></i> 账户余额  </span>
	    <div class="count red" style="text-align:center"> {{ user_money }}元 </div>
	  </div>
	  <div class="col-md-2 col-sm-4 col-xs-6 tile_stats_count">
	    <span class="count_top"><i class="fa fa-clock-o"></i> 累计消费 </span>
	    <div class="count" style="text-align:center"> {{ consume_money }}元 </div>
	  </div>
	  <div class="col-md-2 col-sm-4 col-xs-6 tile_stats_count">
	    <span class="count_top"><i class="fa fa-laptop"></i> 累计充值 </span>
	    <div class="count green" style="text-align:center"> {{ charge_money }}元 </div>
	  </div>
	  <div class="col-md-2 col-sm-4 col-xs-6 tile_stats_count">
	    <span class="count_top"><i class="fa fa-tags"></i> 上次消费 </span>
	    <div class="count" style="text-align:center"> {{ latest_consume }}元 </div>
	  </div>
	   <div class="col-md-2 col-sm-4 col-xs-6 tile_stats_count">
	    <span class="count_top"><i class="fa fa-tasks"></i> 最新充值 </span>
	    <div class="count green" style="text-align:center"> {{ latest_charge }}元 </div>
	  </div>
	  {% else %}
	  <div class="col-md-2 col-sm-4 col-xs-6 tile_stats_count">
	    <span class="count_top"><i class="fa fa-tasks"></i> 新增人数 </span>
	    <div class="count green" style="text-align:center"> {{ today_new }}<span class="count_right">人</span></div>
	  </div>
	  <div class="col-md-2 col-sm-4 col-xs-6 tile_stats_count">
	    <span class="count_top"><i class="fa fa-user"></i> 累计注册人数  </span>
	    <div class="count blue" style="text-align:center"> {{ total_count }}<span class="count_right">人</span> </div>
	  </div>
	  <div class="col-md-2 col-sm-4 col-xs-6 tile_stats_count">
	    <span class="count_top"><i class="fa fa-clock-o"></i> 通过审核人数 </span>
	    <div class="count green" style="text-align:center"> {{ pass_count }}<span class="count_right">人</span> </div>
	  </div>
	  <div class="col-md-2 col-sm-4 col-xs-6 tile_stats_count">
	    <span class="count_top"><i class="fa fa-laptop"></i> 未通过审核人数 </span>
	    <div class="count red" style="text-align:center"> {{ nopass_count }}<span class="count_right">人</span> </div>
	  </div>
	  <div class="col-md-2 col-sm-4 col-xs-6 tile_stats_count">
	    <span class="count_top"><i class="fa fa-tags"></i> 待审核人数 </span>
	    <div class="count gray" style="text-align:center"> {{ wait_count }}<span class="count_right">人</span></div>
	  </div>
	  <div class="col-md-2 col-sm-4 col-xs-6 tile_stats_count">
	    <span class="count_top"><i class="fa fa-user"></i> 累计充值次数 </span>
	    <div class="count green" style="text-align:center"> {{ charge_count }}<span class="count_right">次</span></div>
	  </div>
	  {% endif %}
</div>
<!-- /top tiles -->

{% endblock %}

{% block js %} 
	{% include "common/_js.html" %}
{% endblock %}